package io.kiki.sba.registry.common.model;


import io.kiki.sba.registry.common.model.store.Publisher;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

@Setter
@Getter
public class ClientOffPublishers {
    private final ClientToClientInterfaceServerNodeId clientToClientInterfaceServerNodeId;
    private final List<Publisher> publishers;

    public ClientOffPublishers(ClientToClientInterfaceServerNodeId clientToClientInterfaceServerNodeId, List<Publisher> publishers) {
        this.clientToClientInterfaceServerNodeId = clientToClientInterfaceServerNodeId;
        this.publishers = Collections.unmodifiableList(new ArrayList<>(publishers));
    }


    public boolean isEmpty() {
        return publishers.isEmpty();
    }

}
